package com.example.hzz.criminalintent;

import android.app.Fragment;
import android.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import java.util.UUID;

public class CrimeActivity extends SingleFragmentActivity {

    private Fragment fragment;

    @Override
    protected Fragment CreateFragment() {
        UUID uid = (UUID) getIntent().getSerializableExtra("UUID");
        fragment = CrimeFragment.newInstance(uid);
        return fragment;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_crime);

    }
}
